package NGUYENTHECUONG_DEMO;

public class Bai4Model {
	
	public int	Check(int thang, int nam){
		int result =0;
		switch(thang){
			
			case 4:
			case 6:
			case 9:
			case 11: result =30; break;
			case 2:{
				if ((nam % 400 == 0) || (nam % 4 == 0 && nam % 100 != 0))
			result=29 ;
		else
			result=28 ; break;
			
			}
			case 1:
			case 3:
			case 5:
				case 7:
				case 8:
				case 12: result = 31; break;
		}
		return result;
	}
}
